package com.gitee.melin.bee.core.conf;

import com.gitee.melin.bee.util.JsonUtils;

import java.util.HashMap;

public class MapBooleanValue {
    private final HashMap<String, Boolean> map = new HashMap<>();

    public MapBooleanValue() {}

    public MapBooleanValue(HashMap<String, Boolean> map) {
        this.map.putAll(map);
    }

    public MapBooleanValue(String key, Boolean value) {
        map.put(key, value);
    }

    public HashMap<String, Boolean> getValue() {
        return map;
    }

    @Override
    public String toString() {
        return JsonUtils.toJSONString(map);
    }
}
